package dao.admin.impl;

import dao.BaseDao;
import dao.admin.CardDelDao;

/**
 * CardDelDaoImpl
 *
 * @author lenovo
 * @since 2023/9/5
 */
public class CardDelDaoImpl extends BaseDao implements CardDelDao {
    @Override
    public int delBook(int id) {
        String sql = "delete from borrow_books where card_id = ?";
        return executeUpdate(sql,id);
    }

    @Override
    public int delCard(int id) {
        String sql = "delete from borrow_card where id=? limit 1";
        return executeUpdate(sql,id);
    }
}
